Optimal. Leaf size=76 \[ \frac {b n}{2 d e (d+e x)}+\frac {b n \log (x)}{2 d^2 e}-\frac {a+b \log \left (c x^n\right )}{2 e (d+e x)^2}-\frac {b n \log (d+e x)}{2 d^2 e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2356, 46}
\begin {gather*} -\frac {a+b \log \left (c x^n\right )}{2 e (d+e x)^2}+\frac {b n \log (x)}{2 d^2 e}-\frac {b n \log (d+e x)}{2 d^2 e}+\frac {b n}{2 d e (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2356
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{(d+e x)^3} \, dx &=-\frac {a+b \log \left (c x^n\right )}{2 e (d+e x)^2}+\frac {(b n) \int \frac {1}{x (d+e x)^2} \, dx}{2 e}\\ &=-\frac {a+b \log \left (c x^n\right )}{2 e (d+e x)^2}+\frac {(b n) \int \left (\frac {1}{d^2 x}-\frac {e}{d (d+e x)^2}-\frac {e}{d^2 (d+e x)}\right ) \, dx}{2 e}\\ &=\frac {b n}{2 d e (d+e x)}+\frac {b n \log (x)}{2 d^2 e}-\frac {a+b \log \left (c x^n\right )}{2 e (d+e x)^2}-\frac {b n \log (d+e x)}{2 d^2 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 53, normalized size = 0.70 \begin {gather*} \frac {-\frac {a+b \log \left (c x^n\right )}{(d+e x)^2}+\frac {b n \left (\frac {d}{d+e x}+\log (x)-\log (d+e x)\right )}{d^2}}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.12, size = 235, normalized size = 3.09
method | result | size |
risch | \(-\frac {b \ln \left (x^{n}\right )}{2 e \left (e x +d \right )^{2}}-\frac {-i \pi b \,d^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b \,d^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b \,d^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b \,d^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 \ln \left (e x +d \right ) b \,e^{2} n \,x^{2}-2 \ln \left (-x \right ) b \,e^{2} n \,x^{2}+4 \ln \left (e x +d \right ) b d e n x -4 \ln \left (-x \right ) b d e n x +2 \ln \left (e x +d \right ) b \,d^{2} n -2 \ln \left (-x \right ) b \,d^{2} n -2 b d e n x +2 d^{2} b \ln \left (c \right )-2 b \,d^{2} n +2 a \,d^{2}}{4 d^{2} e \left (e x +d \right )^{2}}\) | \(235\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.34, size = 98, normalized size = 1.29 \begin {gather*} -\frac {1}{2} \, b n {\left (\frac {e^{\left (-1\right )} \log \left (x e + d\right )}{d^{2}} - \frac {e^{\left (-1\right )} \log \left (x\right )}{d^{2}} - \frac {1}{d x e^{2} + d^{2} e}\right )} - \frac {b \log \left (c x^{n}\right )}{2 \, {\left (x^{2} e^{3} + 2 \, d x e^{2} + d^{2} e\right )}} - \frac {a}{2 \, {\left (x^{2} e^{3} + 2 \, d x e^{2} + d^{2} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 108, normalized size = 1.42 \begin {gather*} \frac {b d n x e + b d^{2} n - b d^{2} \log \left (c\right ) - a d^{2} - {\left (b n x^{2} e^{2} + 2 \, b d n x e + b d^{2} n\right )} \log \left (x e + d\right ) + {\left (b n x^{2} e^{2} + 2 \, b d n x e\right )} \log \left (x\right )}{2 \, {\left (d^{2} x^{2} e^{3} + 2 \, d^{3} x e^{2} + d^{4} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 415 vs.
\(2 (66) = 132\).
time = 2.06, size = 415, normalized size = 5.46 \begin {gather*} \begin {cases} \tilde {\infty } \left (- \frac {a}{2 x^{2}} - \frac {b n}{4 x^{2}} - \frac {b \log {\left (c x^{n} \right )}}{2 x^{2}}\right ) & \text {for}\: d = 0 \wedge e = 0 \\\frac {- \frac {a}{2 x^{2}} - \frac {b n}{4 x^{2}} - \frac {b \log {\left (c x^{n} \right )}}{2 x^{2}}}{e^{3}} & \text {for}\: d = 0 \\\frac {a x - b n x + b x \log {\left (c x^{n} \right )}}{d^{3}} & \text {for}\: e = 0 \\- \frac {a d^{2}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} - \frac {b d^{2} n \log {\left (\frac {d}{e} + x \right )}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} + \frac {b d^{2} n}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} - \frac {2 b d e n x \log {\left (\frac {d}{e} + x \right )}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} + \frac {b d e n x}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} + \frac {2 b d e x \log {\left (c x^{n} \right )}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} - \frac {b e^{2} n x^{2} \log {\left (\frac {d}{e} + x \right )}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} + \frac {b e^{2} x^{2} \log {\left (c x^{n} \right )}}{2 d^{4} e + 4 d^{3} e^{2} x + 2 d^{2} e^{3} x^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.80, size = 120, normalized size = 1.58 \begin {gather*} -\frac {b n x^{2} e^{2} \log \left (x e + d\right ) + 2 \, b d n x e \log \left (x e + d\right ) - b n x^{2} e^{2} \log \left (x\right ) - 2 \, b d n x e \log \left (x\right ) - b d n x e + b d^{2} n \log \left (x e + d\right ) - b d^{2} n + b d^{2} \log \left (c\right ) + a d^{2}}{2 \, {\left (d^{2} x^{2} e^{3} + 2 \, d^{3} x e^{2} + d^{4} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.05, size = 91, normalized size = 1.20 \begin {gather*} \frac {b\,n-a+\frac {b\,e\,n\,x}{d}}{2\,d^2\,e+4\,d\,e^2\,x+2\,e^3\,x^2}-\frac {b\,\ln \left (c\,x^n\right )}{2\,e\,\left (d^2+2\,d\,e\,x+e^2\,x^2\right )}-\frac {b\,n\,\mathrm {atanh}\left (\frac {2\,e\,x}{d}+1\right )}{d^2\,e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________